package io.geekidea.springbootplus.system.service;

import io.geekidea.springbootplus.framework.common.service.BaseService;
import io.geekidea.springbootplus.system.entity.SysComment;
import io.geekidea.springbootplus.system.vo.SysCommentQueryVo;

import java.util.List;

public interface SysCommentService extends BaseService<SysComment> {
    //通过商品id查看商品评论
    List<SysCommentQueryVo> getSysCommentByProductId(long productId) throws Exception;

    //写入评论
    boolean addSysComment(SysComment sysComment) throws Exception;

    //通过订单id删评论
    boolean deleteSysCommentByOrderId(Integer orderId) throws Exception;
}
